package 图书馆管理系统.service.impl;

import 图书馆管理系统.book.Book;
import 图书馆管理系统.book.BookList;
import 图书馆管理系统.service.Service;

public class AddService implements Service {
    @Override
    public void work(BookList booklist) {

        System.out.println("请输入书名：" );
        String name = scanner.next();
        System.out.println("请输入作者：" );
        String author = scanner.next();
        System.out.println("请输入类型：" );
        String type = scanner.next();
        System.out.println("请输入价格：" );
        Double price = scanner.nextDouble();
        booklist.bookLists.add(new Book(name,author,type,price));
    }
}
